home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / msk312.zip / WINPKT.HLP < prev   
Text File  |  1992-05-06  |  3KB  |  58 lines

  1. WINPKT - Interface between Microsoft Windows and a Packet Driver
  2.  
  3. Prof. Joe R. Doupnik, Utah State University, Logan Utah
  4.  
  5. May, 1992
  6.  
  7. WINPKT is a helper program for Packet Drivers, what we call a "shim" in the
  8. trade.  It does an essential job for applications programs running in
  9. Windows: it knows how to contact an application properly when a packet
  10. arrives for it.  The reason this is a tricky business is each "window" is
  11. essentially a separate, or virtual, machine and Windows jumps from one to the
  12. other.  From the outside where the Packet Driver lives it has no idea that
  13. the same memory addresses are being used first for one virtual machine and
  14. then another and so on.  Thus if the Packet Driver attempts delivery the
  15. process will likely cause major systems problems (or worse) because it goes
  16. to the wrong machine.
  17.  
  18. WINPKT knows about these things.  One installs WINPKT after the Packet Driver
  19. and both sit outside of Windows.  WINPKT acts as an agent for Windows tasks
  20. by masquerading as a Packet Driver for them.  In turn WINPKT uses the real
  21. Packet Driver for its worker (or conversely, the Packet Driver thinks WINPKT
  22. is an applications program).  WINPKT knows how to get the right virtual
  23. machine activiated so an incoming packet is delivered to the correct place.
  24.  
  25. In practice this means start up the Packet Driver, or DIS_PKT, normally.
  26. Then start WINPKT with a command line of:
  27.  
  28.   C> winpkt win_int pd_int
  29.  
  30. The first item, win_int, is the interrupt seen by applications as if WINPKT
  31. were a Packet Driver.  Let win_int be 0x60.  The second item, pd_int, is the
  32. interrupt of the real Packet Driver, say 0x63.  The two must be different
  33. values and please make win_int be SMALLER than pd_int.  Then start Windows.
  34. Tell applications to use the win_int value for a Packet Driver interrupt.
  35. Many applications will search for it instead, thus by making win_int smaller
  36. than pd_int they will find WINPKT instead of the Packet Driver (and that's
  37. what we want to happen).
  38.  
  39. WINPKT does NOT permit one to run multiple TCP/IP applications together
  40. in Windows.  There are fundamental reasons why this should not be done.  It is
  41. fine to leave WINPKT installed when Windows is not active, because it becomes
  42. transparent then.  Please do NOT use the "-w" switch of Crynwr Collection
  43. Packet Drivers with WINPKT; that switch causes packets to be discarded.  Also
  44. it is not necessary to "fix application in memory" via the Windows PIF file
  45. when WINPKT is installed because WINPKT is smart enough to let that
  46. restriction be removed.
  47.  
  48. Here is a sample network startup Batch file with all the components in place:
  49.  
  50.   @echo off
  51.   c:\wd8003e 0x63 7 0x280 0xca00      (Regular Packet Driver)
  52.   c:\winpkt 0x60 0x63                 (WINPKT)
  53.   c:\ipx                              (Packet Driver version of Novell's IPX)
  54.   c:\netx PS=edu-usu-netlab2          (Novell, connnect to my server)
  55.   @echo on
  56.  
  57. (End of WINPKT.HLP)
  58.